package com.ems.service.impl.Invigilate.room;

import com.ems.dao.Invigilate.room.TestResultDao;
import com.ems.pojo.Invigilate.room.TestResult;
import com.ems.service.Invigilate.room.TestResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: 伟伟
 * @Date: 2020/3/12
 * @Description: 描述
 * @Version: 1.0
 */
@Service("testResultService")
public class TestResultServiceImpl implements TestResultService {
    @Autowired
    private TestResultDao testResultDao;

    @Override
    public void addTestResult(TestResult testResult) {
        testResultDao.addTestResult(testResult);
    }

    @Override
    public void deleteTestResult(int tsr_id) {
        testResultDao.deleteTestResult(tsr_id);
    }

    @Override
    public List<TestResult> getTestReusltByTsrId(int tsr_id) {
        return testResultDao.getTestReusltByTsrId(tsr_id);
    }
}
